$OpenBSD: patch-ext_sockets_sockaddr_conv_c,v 1.1.1.1 2015/12/14 17:58:45 robert Exp $
--- ext/sockets/sockaddr_conv.c.orig.port	Tue Dec  1 14:36:34 2015
+++ ext/sockets/sockaddr_conv.c	Sun Dec  6 14:04:50 2015
@@ -11,6 +11,10 @@
 
 extern int php_string_to_if_index(const char *val, unsigned *out);
 
+#if defined(__OpenBSD__)
+#define AI_V4MAPPED 0
+#endif
+
 #if HAVE_IPV6
 /* Sets addr by hostname, or by ip in string form (AF_INET6) */
 int php_set_inet6_addr(struct sockaddr_in6 *sin6, char *string, php_socket *php_sock) /* {{{ */
